import request from '@/utils/request'
import type { LoginResponse } from './types'

export const login = (data: { username: string; password: string }) => {
  return request.post<LoginResponse>('/api/auth/login', data)
}
